import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
/**
 * Created by Think on 2016/4/12.
 */
import junit.framework.TestCase;
public class ComplexTest2 extends TestCase{
    public void testNoral(){
        assertEquals("4+2i",Complex.minus(new Complex(4,3),new Complex(0,1) ) );
        assertEquals("5+5i",Complex.add(new Complex(3,4),new Complex(2,1) ) );
        assertEquals("-3-5i",Complex.minus(new Complex(0,0),new Complex(3,5) ) );
        assertEquals("0",Complex.add(new Complex(0,0),new Complex(0,0) ) ) ;
        assertEquals("0",Complex.Multi(new Complex(0,0),new Complex(3,5) ) );
        assertEquals("2+8i",Complex.Multi(new Complex(1,1),new Complex(5,3) ) );
    }


}